package com.soap.controller;

import com.soap.entity.query.PersonDto;
import com.soap.service.PersonSearchService;
import com.soap.service.UserSearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by ZhangPY on 2021/2/16
 * Belong Organization OVERUN-9299
 * overun9299@163.com
 * Explain: PersonSearchController
 */

@RestController
@RequestMapping(value = "/person")
public class PersonSearchController {


    @Autowired
    private PersonSearchService personSearchService;

    @RequestMapping("/getPersons")
    public String getPersons(PersonDto personDto) {
        return personSearchService.getPersons(personDto);
    }
}
